//package com.qb.video.ui.activity
//
//import android.os.Bundle
//import com.alibaba.android.arouter.facade.annotation.Route
//import com.alibaba.android.arouter.launcher.ARouter
//import com.blankj.utilcode.util.LogUtils
//import com.blankj.utilcode.util.ObjectUtils
//import com.qb.baselibrary.basekotlin.BaseActivity
//import com.qb.common.router.RouterPath
//import com.qb.video.bean.Hot
//import com.qb.video.databinding.VideoActivityVideoBinding
//import com.qb.video.viewmodule.VideoModel
//
//@Route(path = RouterPath.URL_Video_VideoActivity)
//class VideoActivity : BaseActivity<VideoModel,VideoActivityVideoBinding>() {
//    var z:String?=null
//    var s1ig:String?=null
//    var g:String?=null
//    var url:String?=null
//    private val hotVideoAdapter by lazy {
//        HotVideoAdapter()
//    }
//    private val newVideoAdapter by lazy {
//        NewVideoAdapter()
//    }
//    override fun initView(savedInstanceState: Bundle?) {
//        with(mBinding.recycleHot){
//            adapter = hotVideoAdapter
//        }
//        with(mBinding.recycleNew){
//            adapter = newVideoAdapter
//        }
//
//        hotVideoAdapter.apply {
//            setOnItemClickListener { adapter, view, position ->
//                var hostBean = adapter.getItem(position) as Hot
//                if (!ObjectUtils.isEmpty(hostBean.source)){
//                    var source = hostBean.source
//                    if (!ObjectUtils.isEmpty(source.eps)){
//                        var eps = source.eps
//                        if (eps.size>0){
//                           ARouter.getInstance().build(RouterPath.URL_Video_VideoResumeActivity).withString("playUrl",eps[0].url).withString("name",eps[0].name).navigation()
//                        }
//                    }
//                }
//            }
//        }
//        var map  = UtilParams.addParams()
//        map["url"]="https://v.qq.com/x/cover/m441e3rjq9kwpsc/r0034niayi8.html"
//        map["_"] = System.currentTimeMillis()
////        if (!z.isNullOrEmpty()){
////            map["z"] = "$z"
////        }
////        if (!s1ig.isNullOrEmpty()){
////            map["s1ig"] = "$s1ig"
////        }
////        if (!g.isNullOrEmpty()){
////            map["g"] = "$g"
////        }
////        if (!url.isNullOrEmpty()){
////            map["url"] = "$url"
////        }
////        viewModel.videomain(map).observe(this, Observer {
////            LogUtils.e("==-->输出结果${it.code}")
////            LogUtils.e("==-->输出结果${it.data?.hot}")
////            it.data?.let {data->
////                data.hot?.let { hosts->
////                    hotVideoAdapter.setNewInstance(hosts)
////                }
////                data.new?.let { news->
////                    newVideoAdapter.setNewInstance(news)
////                }
////            }
////        })
//
//
//
//
//
//
//    }
//
//    override fun initData() {
//        z = intent.getStringExtra("z")
//        s1ig = intent.getStringExtra("s1ig")
//        g = intent.getStringExtra("g")
//        url = intent.getStringExtra("url")
//        LogUtils.e("video z " + z)
//        LogUtils.e("video s1ig " + s1ig)
//        LogUtils.e("video g " + g)
//    }
//}